package com.itheima.sh.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author 古月撒么
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_sku")
public class Sku implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private String id;
    @TableField("sn")
    private String sn;
    @TableField("name")
    private String name;
    @TableField("price")
    private Integer price;
    @TableField("num")
    private Integer num;
    @TableField("alert_num")
    private Integer alertNum;
    @TableField("image")
    private String image;
    @TableField("images")
    private String images;
    @TableField("weight")
    private Integer weight;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    @TableField("spu_id")
    private String spuId;
    @TableField("category_id")
    private Integer categoryId;
    @TableField("category_name")
    private String categoryName;
    @TableField("brand_name")
    private String brandName;
    @TableField("spec")
    private String spec;
    @TableField("sale_num")
    private Integer saleNum;
    @TableField("comment_num")
    private Integer commentNum;
    @TableField("status")
    private String status;


}
